package com.example.demo.dto;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

public class NurPatientRelDTO implements Serializable {
    private Integer rid;
    private String socname;
    private String oname;
    private Date rstart;
    private Date rend;
    private String nname;

    public NurPatientRelDTO() {
    }

    public NurPatientRelDTO(Integer rid, String socname, String oname, Date rstart, Date rend, String nname) {
        this.rid = rid;
        this.socname = socname;
        this.oname = oname;
        this.rstart = rstart;
        this.rend = rend;
        this.nname = nname;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getSocname() {
        return socname;
    }

    public void setSocname(String socname) {
        this.socname = socname;
    }

    public String getOname() {
        return oname;
    }

    public void setOname(String oname) {
        this.oname = oname;
    }

    public Date getRstart() {
        return rstart;
    }

    public void setRstart(Date rstart) {
        this.rstart = rstart;
    }

    public Date getRend() {
        return rend;
    }

    public void setRend(Date rend) {
        this.rend = rend;
    }

    public String getNname() {
        return nname;
    }

    public void setNname(String nname) {
        this.nname = nname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NurPatientRelDTO that = (NurPatientRelDTO) o;
        return Objects.equals(rid, that.rid) && Objects.equals(socname, that.socname) && Objects.equals(oname, that.oname) && Objects.equals(rstart, that.rstart) && Objects.equals(rend, that.rend) && Objects.equals(nname, that.nname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(rid, socname, oname, rstart, rend, nname);
    }

    @Override
    public String toString() {
        return "NurPatientRelDTO{" +
                "rid=" + rid +
                ", socname='" + socname + '\'' +
                ", oname='" + oname + '\'' +
                ", rstart=" + rstart +
                ", rend=" + rend +
                ", nname='" + nname + '\'' +
                '}';
    }
}
